package gatperdut.chato.core.interpreter.grammar.comminfo;

import gatperdut.chato.core.interpreter.grammar.comminfo.indexedword.IndexedWord;

public class SetsInfo extends CommandInfo {

    public enum SetsOperation {
        MERGE, SPLIT;
    };

    private final SetsOperation setsOperation;

    private IndexedWord set1;

    private IndexedWord set2;

    private boolean ground1 = false;

    private boolean ground2 = false;

    private int amount = 0;

    public SetsInfo( SetsOperation setsOperation ) {
        super( CommandType.SETS );
        this.setsOperation = setsOperation;
    }

    public IndexedWord getSet1() {
        return set1;
    }

    public void setSet1( IndexedWord set1 ) {
        this.set1 = set1;
    }

    public IndexedWord getSet2() {
        return set2;
    }

    public void setSet2( IndexedWord set2 ) {
        this.set2 = set2;
    }

    public boolean isGround1() {
        return ground1;
    }

    public void setGround1( boolean ground1 ) {
        this.ground1 = ground1;
    }

    public boolean isGround2() {
        return ground2;
    }

    public void setGround2( boolean ground2 ) {
        this.ground2 = ground2;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount( int amount ) {
        this.amount = amount;
    }

    public SetsOperation getSetsOperation() {
        return setsOperation;
    }

}
